﻿using Architecture.CrossCutting.RepositoryPattern;
using Architecture.Domain.BankManagement.QuerySpecifications;
using Architecture.Domain.TestModel.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain.BankManagement.Repositories
{
    public class CompteRepository : Repository<Compte>
    {
        public CompteRepository(System.Data.Entity.DbContext context) : base(context)
        {
        }


        public IQueryable<Compte> GetCashAccount()
        {
            var compteCash = CompteSpecifications.CompteCash;

            return this.AllMatching(compteCash);
        }

    }
}
